package analizator;

import analizator.Analizator.Atom;

/**
 *
 * @author bufu
 */
public class Sir implements Atom {

    private String m_strValue;
    private int m_line, m_column;

    public Sir(String value, int line, int column) {
        m_strValue = value;
        m_line = line;
        m_column = column;
    }

    /*
     * public static Sir makeAtom(FileProvider provider) { Caracter head =
     * provider.getCharacter(), temp; if (head == null) { return null; } if
     * (head.value != '\"' && head.value != '\'') { provider.putCharacter(head);
     * return null; } StringBuilder buff = new StringBuilder(); temp =
     * provider.getCharacter(); while (temp.value != head.value) {
     * buff.append(temp.value); temp = provider.getCharacter(); } return new
     * Sir(head.value == '\"', buff.toString(), head.line, head.column);
    }
     */
    @Override
    public String toString() {
        return "Sir constant, value" + m_strValue + " " + m_line + " " + m_column;
    }
}
